﻿using Microsoft.AspNetCore.Mvc.Filters;

namespace 异步过滤器.Filtter
{
    public class TestFiltter : IActionFilter
    {
        public void OnActionExecuted(ActionExecutedContext context)
        {
            Console.WriteLine("请求执行之前"+DateTime.Now);
            Thread.Sleep(3000);
            Console.WriteLine("阻塞三秒"+DateTime.Now);
        }

        public void OnActionExecuting(ActionExecutingContext context)
        {
            
        }
    }
}
